package com.ftg.learn.chapter15.myabstra;

/**
 * @author KangJx
 * @date 2021/7/23
 */
public class C extends A {

    @Override
    public int diff() {
        return 1;
    }

    public static void main(String[] args) {
        A a1 = new B();

        A a2 = new C();
        a1.add(2,3);
        a2.add(3,4);

        a1.diff();
        a2.diff();
    }

}
